<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <!-- <link rel="stylesheet" href="/static/css/index.css"> -->
</head>
<style>
  * {
    margin: 0;
    padding: 0;
  }

  .head {
    width: 800px;
    height: 50px;
    border: 1px solid gray;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .box thead {
    width: 800px;
    height: 50px;
    border: 1px solid black;
    /* display: flex; */
    /* justify-content: space-between; */
  }

  .box button {
    background-color: rgb(98, 98, 255);
    border: 0;
    width: 50px;
    height: 30px;
    color: white;
    border-radius: 5px;
  }

  tbody td button {
    margin-left: 10px;
  }

  table {
    width: 800px;
    text-align: center;
  }

  .nan,
  .dis {
    box-sizing: border-box;
    font-size: 12px;
    color: red;
    border: 1px solid red;
    border-radius: 5px;
    padding: 3px;
    background-color: rgba(255, 0, 0, 0.1);
  }

  .nv,
  .avail {
    box-sizing: border-box;
    font-size: 12px;
    color: green;
    border: 1px solid green;
    border-radius: 5px;
    padding: 3px;
    background-color: rgba(0, 128, 0, 0.1);
  }



  /* 修改页面 */
  .da {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .da>div {
    width: 500px;
    height: 350px;
    background-color: white;
    display: flex;
    flex-direction: column;
    /* padding-bottom: 10px; */
  }

  .da>div .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    height: 30px;
    border-bottom: 1px solid gray;
  }

  .da>div .header button {
    background-color: white;
    border: 0;
    width: 30px;
    height: 30px;
    font-size: 20px;
  }

  .da .input {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .da .input>input {
    height: 25px;
  }

  .da .button {
    display: flex;
    justify-content: right;
    padding: 10px;
  }

  .da .button .false,
  .da .button .true {
    width: 50px;
    height: 30px;
    margin-left: 10px;
  }

  .da .button .true {
    color: white;
    background-color: rgb(98, 98, 255);
    border: 0;
    border-radius: 5px;
  }

  .change {
    display: none;
  }

  .add {
    display: none;
  }
</style>

<body>
  <div class="box">
    <div class="head">
      <h3>用户列表</h3>
      <button class="addBtn">添加</button>
    </div>
    <table>
      <thead>
        <tr>
          <td>序号</td>
          <td>用户名</td>
          <td>手机号</td>
          <td>邮箱</td>
          <td>性别</td>
          <td>状态</td>
          <td>操作</td>
        </tr>
      </thead>
      <tbody>
        <tr>

        </tr>
      </tbody>
    </table>
  </div>


  <!-- 修改 -->
  <div class="da change">
    <div>
      <div class="header">
        <span>修改用户</span>
        <button class="false">×</button>
      </div>
      <div class="input">
        <input type="text" name="name" placeholder="用户名"><br>
        <input type="text" name="pwd" placeholder="密码"><br>
        <input type="text" name="email" placeholder="邮箱"><br>
        <div>
          <input type="radio" value="男" name="sex">男
          <input type="radio" value="女" name="sex">女
          <input type="radio" value="保密" name="sex">保密
        </div>
        <input type="text" name="iphone" placeholder="手机号">
      </div>
      <div class="button">
        <button class="false">取消</button>
        <button class="true">确定</button>
      </div>
    </div>

  </div>

  <!-- 增加 -->
  <div class="da add">
    <div>
      <div class="header">
        <span>添加用户</span>
        <button class="false">×</button>
      </div>
      <div class="input">
        <input type="text" name="name" placeholder="用户名"><br>
        <input type="text" name="pwd" placeholder="密码"><br>
        <input type="text" name="email" placeholder="邮箱"><br>
        <div>
          <input type="radio" value="男" name="sex" checked>男
          <input type="radio" value="女" name="sex">女
          <input type="radio" value="保密" name="sex">保密
        </div>
        <input type="text" name="iphone" placeholder="手机号">
      </div>
      <div class="button">
        <button class="false">取消</button>
        <button class="true">确定</button>
      </div>
    </div>

  </div>

  <script src="/static/js/ajax.js"></script>
  <script src="/static/js/index.js"></script>
</body>

</html>